home *** CD-ROM | disk | FTP | other *** search
Wrap
global gFruitObj, gCompletedRollUp, gRandomPos, gNullCst, gFruitRolledOut, gRolloverSpt, gUnRolledRollUpSpt, gPackageObj, gAnimationInProgress, gFruitInPackageLoc, gGuyObj, gGuyStandingCst, gGuyWalkCst, gGuyDanceCst, gGuyWalking, gInitialColorDepth, gInteruptFlag, gPathDelim, flushActive, gIsPc on startMovie set flushActive to 0 set the mouseDownScript to EMPTY set the mouseUpScript to EMPTY set the timeoutScript to EMPTY end on stopMovie if not IsShockWave() then if the machineType <> 256 then if not IsProj() then closeXLib(the pathName & "JOHNNY.XOBJ") end if end if end if end on IsProj return 1 end on IsShockWave return 0 end on envTest if the machineType <> 256 then if the soundLevel = 0 then alert("The sound level must be set above 0 for Bob and Weave to Box. The sound level is being set to 5.") set the soundLevel to 5 end if if IsProj() then if the colorDepth <> 8 then alert("Your monitor is being set to 8 bit to optimize performance. Your monitor will automatically be set back to " & the colorDepth & " when you quit.") set gInitialColorDepth to the colorDepth set the colorDepth to 8 end if end if end if end on initGame cursor(4) initGlobals() initObjects() if not IsShockWave() then if the machineType = 256 then set gPathDelim to "\" set gIsPc to 1 else set gPathDelim to ":" set gIsPc to 0 if not IsProj() then openXLib(the pathName & "JOHNNY.XOBJ") end if end if end if resetCursor() end on initGlobals clearGlobals() set gInitialColorDepth to 0 set gInteruptFlag to 0 set gRandomPos to 0 set gNullCst to 75 set gUnRolledRollUpSpt to 19 set gFruitRolledOut to 0 set gCompletedRollUp to 0 set gFruitInPackageLoc to point(39, 150) repeat with n = 10 to 12 set the visible of sprite n to 1 end repeat end on initObjects global gPackageObj, gGuyObj, gFruitObj set gPackageObj to new(script "PACKAGE") set gGuyObj to new(script "GUY") set gFruitObj to new(script "FRUIT") puppetSnd(1, 81) slide3(10, 11, 12, 58, 125, 189, 10, 3) repeat while soundBusy(1) end repeat end